home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19990725-20000114
/
000239_news@columbia.edu _Wed Oct 27 14:58:07 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA07726
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 27 Oct 1999 14:58:07 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA13558
for kermit.misc@watsun.cc.columbia.edu; Wed, 27 Oct 1999 14:38:32 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Automating FTP?
Date: 27 Oct 1999 18:38:31 GMT
Organization: Columbia University
Message-ID: <7v7gr7$d7j$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <7v3gdd$63h$2@news.smart.net>,
Richard L. Hamilton <rlhamil@smart.net> wrote:
: In article <3813e65d.0@news.access.net.au>,
: jc@access.net.au (James Carter) writes:
: > Nick (nick_j@mailcity.com) wrote:
: >: I'm trying to write a script, that will automagically FTP a file to
: >: another server, I've tried doing it this way, but its just not
: >: happening:
: >
: >: #!/bin/sh
: >: ftp 10.1.1.8 <<EOF
: >: anonymous
: >: asdf@asdf.com
: >: ascii
: >: send test.txt
: >: exit
: >: EOF
: >
: >: Has anyone got any ideas for this? Thanks,
: >
: > try this:
: >
: > #!/bin/ksh
: > FTPHOST="my.ftp.host.name"
: > FTPUSER="anonymous"
: > FTPPASSWD="jc@foo.bar"
: > ftp -inv ${FTPHOST} << EOT
: > user ${FTPUSER} ${FTPPASSWD}
: > ascii
: > put test.txt
: > quit
: > EOT
: > # --- END ---
:
: Problem with this is that the return code won't tell
: anything about the success of the transfer(s).
:
Your typical FTP client was never designed for automation.
Here's an alternative -- don't laugh until you've finished
reading: Kermit.
C-Kermit 7.0, in late Beta, is about as fast as FTP on Internet
connections, and is fully programmable down to the tiniest
detail. It allows the transfer of each file to be tested for
success or failure, it has an update feature (only transfer those
files that changed since last time), a recovery feature, flexible
file selection features (regular expressions, exception lists,
dates, sizes, etc), and special actions at the end of each file;
for example: move it, rename it (solving the old riddle "how
do I know when ftpd is finished receiving a file?").
Furthermore, the new version allows any mixture of text and
binary files to be transferred in the same operation, and it
allows recursive descent through the source directory, creating a
mirror image at the destination, EVEN IF THEY ARE DIFFERENT
PLATFORMS (such as UNIX and VMS), with on-the-fly character-set
translation (now including Unicode) for text files.
C-Kermit 7.0 can be configured as an Internet Kermit Service,
similar to FTPD -- really, more like a cross between ftpd and
telnetd. It allows both anonymous and real logins, and supports
a wide variety of authentication types.
For more info see:
http://www.columbia.edu/kermit/ck70.html
and to see the Internet Kermit Service in action, start at:
http://www.columbia.edu/kermit/cuiksd.html
For samples of C-Kermit's scripting language, see:
http://www.columbia.edu/kermit/ckscripts.html
If you haven't looked at C-Kermit recently you might be
surprised.
- Frank